#ifndef _SERVER_CONF_H_
#define _SERVER_CONF_H_

#include <sys/types.h>
#include <sys/socket.h>

#define DEFAULT_MEDIA_DIR "/home/lxz/share/document/Project/StreamBroadcast/media"
#define DEFAULT_IF  "ens33"

enum {
    RUN_DAEMON = 1,
    RUN_FORGROUND,
};

struct server_conf {
    char* rcvport;
    char* mgroup;
    char* mediaDir;
    char* ifName;
    char runMode;
};

extern struct server_conf conf;
extern int serverSd;
extern struct sockaddr_in sndAddr;  // 发送端(本端\服务端)地址
extern socklen_t sndAddrLen;    // sndAddr的长度

#endif
